<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>相片浏览页面</title>
	 <script type="text/javascript" src="${staticWebsite}js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="${staticWebsite}js/thickbox.js"></script>
     <link rel="stylesheet" href="${staticWebsite}css/common/thickbox.css" type="text/css" />
       <script type="text/javascript">
	$(document).ready(function(){
	    $("#pinglun").click(function(){
	       var thisObj=$(this);
	       var albumId=thisObj.attr("data1");
	       var pinglunContent=$("#pinglunContent").val();
	         $.ajax({
						type:"post",
						data:"albumId="+$.trim(albumId)+"&albumCommentContent="+pinglunContent,
						url:"${website}album/album_ajax_savePinlun.action",
						success:function(obj){
						    	if(obj){
						    	    var apDiv="<div>"+pinglunContent+"</div>";
						    	    thisObj.parent().parent().parent().before(apDiv);
						    	}
							}
				});
				
	    });
	});
	</script>
</head>
<body>
<div style="left:700px;top:100px;" align="center">
  <div style="margin:5px;"><a id="popLayer" onfocus="this.blur();" href="${website}upload/upload_upload_goImageUpload.action?keepThis=true&type=test&number=1&pos=imgUpload&TB_iframe=true&height=500&width=700&modal=true" class="thickbox"><img src="${staticWebsite}image/album/upload.jpg"/></a></div>
   <div><font size="20">${album.albumName}</font></div>
   <div><a href="#"><img src="${staticWebsite}image/album/suolie_gray.jpg"/></a><a href="#"><img src="${staticWebsite}image/album/pinglun_light.jpg"/></a></div>
   <table align="center">
   <tr>
    <c:forEach items="${albumItemsList}" var="i" varStatus="s">
         <c:choose>
            <c:when test="${(s.count-1)%4==0}"></tr><tr></c:when>
         </c:choose>
         <td><a href=""><img src="${staticWebsite}/${i.scaleImgURL}"/></a></td>
    </c:forEach>
     </tr>
    
     <tr>
     <td><a href="#">评论</a>|
     <a href="">分享</a>|
     <a href="">喜欢</a></td>
     </tr>
   </table>
  <br/>
   <div align="center">
     <textarea rows="5" cols="40" id="pinglunContent"></textarea> 
      <div><br/><a href="#"><img id="pinglun" src="${staticWebsite}image/album/pinglun.jpg" data1="${album.id}"/></a><input type="checkbox" value="1"/>悄悄话</div>
   </div>
 </div>
</body>
</html>
